﻿using System.Web;
using System.Web.Mvc;

namespace WebSite.ViewModels.Fields
{
    public class FieldHtmlString : FieldBase
    {
        public FieldHtmlString(string caption, IHtmlString value, bool isOneRow = false)
            : base(caption, null, value, isOneRow)
        {
        }

        public override IHtmlString Render(HtmlHelper htmlHelper)
        {
            return (IHtmlString) Value;
        }
    }
}